home *** CD-ROM | disk | FTP | other *** search
- //embed-head//
-
- // Check for admin rights
- set $4 to isadmin ""
- goto @adminerr if equal {$4} "0"
-
- // Check to see if Screen Shot 4 is installed
- set $4 to registry "SOFTWARE\NewTech Infosystems\NTI CD-Maker Deluxe" "Directory"
- goto @runapp if not equal {$4} ""
-
- // Launch preview screen
- child preview.exe
-
- @presetup
-
- // Start setup if product has been purchased
- set $4 to inifile {%windir}win.ini "TLC Options" "$sel9cdm"
- goto @setup if not equal {$4} ""
-
- // Exit if User does not want to start trial
- set $4 to inifile {%windir}win.ini "TLC Options" "*sel9cdm"
- goto @menu if equal {$4} ""
-
-
- @setup
- set $4 to tempfile {%temp}
- mkdir {$4}
- copy source.ini {$4}\source.ini
- copy start.exe {$4}\postinstall.exe
- copy postinstall.cfg {$4}\postinstall.cfg
- registry "Software\Microsoft\Windows\CurrentVersion\RunOnce" "sel9cdm" {$4}"\postinstall.exe"
-
- // install the application
- child INSTALL\SETUP.EXE -sms
- goto @done
-
- @runapp
- set $4 to registry "SOFTWARE\NewTech Infosystems\NTI CD-Maker Deluxe" "Directory"
- goto @error if equal {$4} ""
- child {$4}"\cdmkr32.exe"
- goto @done
-
- @adminerr
- message "Error" "We're sorry, you must be an administrator to install or run this program. Please log on as an administrator and try again."
- goto @menu
-
- @error
- message "ERROR" "There has been an error and we are unable to perform the requested action."
- goto @menu
-
- @menu
- run ..\autorun.exe
- goto @done
-
- @done
- stop
-
- //embed-tail//